import request from "@/utils/request";

// 用户列表
// http://120.211.58.75:50003/admin.schoolAdminUser/searchAdminUserPage
export const searchAdminUserPage = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/searchAdminUserPage",
    method: "POST",
    data,
  });
};
// 新建用户
// http://120.211.58.75:50003/admin.schoolAdminUser/addAdminUser
export const addAdminUser = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/addAdminUser",
    method: "POST",
    data,
  });
};
// 用户详情
// http://120.211.58.75:50003/admin.schoolAdminUser/detailsAdminUser
export const detailsAdminUser = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/detailsAdminUser",
    method: "POST",
    data,
  });
};
// 编辑用户
// http://120.211.58.75:50003/admin.schoolAdminUser/editAdminUser
export const editAdminUser = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/editAdminUser",
    method: "POST",
    data,
  });
};
// 删除用户
// http://120.211.58.75:50003/admin.schoolAdminUser/deleteAdminUser
export const deleteAdminUser = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/deleteAdminUser",
    method: "POST",
    data,
  });
};
// 修改密码
// http://120.211.58.75:50003/admin.schoolAdminUser/editPasswrod
export const editPasswrod = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/editPasswrod",
    method: "POST",
    data,
  });
};
// 修改员工状态
// http://120.211.58.75:50003/admin.schoolAdminUser/changeFreeze
export const changeFreeze = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/changeFreeze",
    method: "POST",
    data,
  });
};
// 修改自己密码
// http://120.211.58.75:50003/admin.schoolAdminUser/editMePasswrod
export const editMePasswrod = (data) => {
  // console.log(data);
  return request({
    url: "/admin.schoolAdminUser/editMePasswrod",
    method: "POST",
    data,
  });
};
// 用户数据导出
// http://120.211.58.75:50003/admin.index/personnelExcel
export const personnelExcel = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/personnelExcel",
    method: "POST",
    data,
  });
};
export const zhiyuanzhe = (data) => {
  // console.log(data);
  return request({
    url: "/admin.index/zhiyuanzhe",
    method: "POST",
    data,
  });
};
